package com.yx.front.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author YangXiong
 */
@Data
public class CommentsInfoVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论主键id")
    private Long id;

    @ApiModelProperty(value = "评论类型：对人评论，对项目评论，对资源评论")
    private Integer type;

    @ApiModelProperty(value = "被评论者id，可以是人、项目、资源")
    private String ownerId;

    @ApiModelProperty(value = "评论者id")
    private Long fromId;

    @ApiModelProperty(value = "评论者名字")
    private String fromName;

    @ApiModelProperty(value = "评论者头像")
    private String fromAvatar;

    @ApiModelProperty(value = "点赞的数量")
    private Integer likeNum;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "修改时间")
    private String updateTime;

    @ApiModelProperty("评论回复列表，只查前10条，后面单独处理")
    private List<CommentsReplyVo> reply;
}
